from django.db import models

# Create your models here.
class JosXmap(models.Model):
    name = models.CharField(max_length=30, primary_key=True)
    value = models.CharField(max_length=100, blank=True)
    class Meta:
        db_table = u'jos_xmap'

class JosXmapExt(models.Model):
    id = models.IntegerField(primary_key=True)
    extension = models.CharField(max_length=100)
    published = models.IntegerField(null=True, blank=True)
    params = models.TextField(blank=True)
    class Meta:
        db_table = u'jos_xmap_ext'

class JosXmapItems(models.Model):
    uid = models.CharField(max_length=100)
    itemid = models.IntegerField()
    view = models.CharField(max_length=30)
    sitemap_id = models.IntegerField(primary_key=True)
    properties = models.CharField(max_length=100, blank=True)
    class Meta:
        db_table = u'jos_xmap_items'

class JosXmapSitemap(models.Model):
    id = models.IntegerField(primary_key=True)
    name = models.CharField(max_length=255, blank=True)
    expand_category = models.IntegerField(null=True, blank=True)
    expand_section = models.IntegerField(null=True, blank=True)
    show_menutitle = models.IntegerField(null=True, blank=True)
    columns = models.IntegerField(null=True, blank=True)
    exlinks = models.IntegerField(null=True, blank=True)
    ext_image = models.CharField(max_length=255, blank=True)
    menus = models.TextField(blank=True)
    exclmenus = models.CharField(max_length=255, blank=True)
    includelink = models.IntegerField(null=True, blank=True)
    usecache = models.IntegerField(null=True, blank=True)
    cachelifetime = models.IntegerField(null=True, blank=True)
    classname = models.CharField(max_length=255, blank=True)
    count_xml = models.IntegerField(null=True, blank=True)
    count_html = models.IntegerField(null=True, blank=True)
    views_xml = models.IntegerField(null=True, blank=True)
    views_html = models.IntegerField(null=True, blank=True)
    lastvisit_xml = models.IntegerField(null=True, blank=True)
    lastvisit_html = models.IntegerField(null=True, blank=True)
    excluded_items = models.CharField(max_length=255, blank=True)
    compress_xml = models.IntegerField(null=True, blank=True)
    class Meta:
        db_table = u'jos_xmap_sitemap'

